Don't recompile nested deps too frequently
authorAlex Crichton <alex@alexcrichton.com>
Wed, 25 Jun 2014 18:53:19 +0000 (11:53 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 25 Jun 2014 22:21:43 +0000 (15:21 -0700)
commit8d5acdfc67530b0ee18cb07dced72a177372a999
treeaecb48c7dc731727060beb094c59fecede7c2a00
parent53a4b9856c00883349bf467bd40de21ad0458569
Don't recompile nested deps too frequently

When compiling a package with a nested dependency, any modification to the outer
package would trigger a recompilation of the inner package. This commit alters
the fingerprint() method to take a PackageId to query about the location of a
package and only lookup the files relevant to that package.

The dependency structure of a PathSource is now everything rooted at the
original Cargo.toml minus all subdirectories which contain a Cargo.toml
src/cargo/core/package.rs
src/cargo/core/source.rs
src/cargo/sources/git/source.rs
src/cargo/sources/path.rs
tests/test_cargo_compile_path_deps.rs